added callback support to init functions