fixed errors and create temp session for status display