support -s 'addr:port'
refine code