make on_created to enable for mac os x