v 1.1: added command line arugments