basic erlang session system