fixed issue with request object not being available pre-flight