throw error on empty engine