refine _util, add basic main function

Signed-off-by: sthsieh <sthsieh@synology.com>