fixed init error + removed debug messages