initial implementation of get_in_sync
working state machine (callback system missing)