added error handing for sv_main without arguments