purge_old_sessions command only gets registered if app