added pyx file for external logic