updated token authentication and added time management to apps