port: add lines for runing directly as a script