updated arguments parsing, more printing