combing code pattern into a new proc hf_vms_basic