draft work on phalcon lib