added fixes for url initial session issues