setuphandlers: verification of valid context