added automatic discover
added interval for automatic discover