reorganization

fix framesync
reorganization