add returns for proc/func and hlt for main