fixed _config bugs
replaced a lot of printf calls