remove useless variables
polling interval is now an option