fix for init() not getting called