clean up code
WIP: support CSS with SPINDLE_SYNC_MOTION