bbclog service script and supporting bits