check flag args
added stderr