source code from prelaunchr