shebang fixed. removed unused code.