added debug info; fixed menu init