fixed init script. cleaned up parameters a bit