changed startup script as per https://coderwall.com/p/wmyqbw