that's a pretty elegant solution, thanks for sharing.