some common code for erlang dev