better parsing for erlang console