added shebang support