factor out init() function, nicer stage titles