add shebang and enable apc