added callback to incorporate init functionality