adding cursor/loop macro and updating exported symbols