now erlang handles option code