Reworked sessionType to control map access with mutex instead of channels
session fixes