launcher code and other stuff