added basic parsing of arguments