remote stuff
removed lock in favour of a working version with an event