converted for launchkey, added logging