remove redundant conditional branches
add shebang for local runs