added timehelper, updated authorize stuff