added wake
working on sync