workaround for losing context