moved checking of user submitted overlay type to the initialise function