use lists:keyfind instead of proplists:get_value