fix misc bugs and add logging to initrock