fixed recursion error, and remove debugging info
added additional init format and settings