session init twice fix
upload works