added  flag in proc for heroku compat.