small changes to init