graceful_startup in context processor
merge from Windows