remove syncpoins and state in imap.py