changed to shebang
changed to can execute on linux
changed error code
refactored
refactored