adds shebang
fixes user checking