runtime optimized routines for emzed framework