trying to get rid of warning in maincontext call