refactor erl-utils, more clean code
set frame size
merge with master