working userhost api function [Close #498]