added option to refresh tokens