setup NSTimer and auto-checking