made sessionHelper functions static
minor fixes