read user/passwd from args, print usage, refactor some