replaced get-/setuservalue macros with functions