code cleanup / local variables
minor code prettyfy / whitespaces
remove logs unrelated to session initialization or errors
error management simplification