turn off noisy debug
fix option parsing
fix error message printing