reformat
don't check permissions while checking permissions
die on timeout in hope that someone (heroku) will restart it