fixed a bug related to argument handling, and improved argument mismatch errors