changed `proplists:get_value/2` to `lists:keyfind/3` as possible