throw error if no callback provided in boot