add White list and daemon support