using redirect to app itself to remove side effects