add arguments to main and escaping ' in info of error