fix function load/unset