bugfixes; signalling main thread, explicit init of Sandstorm Redis pointer, misc syntax