flex function - alas, not the most compatible with current lathe geometry implementation :\