move proxy to Ref
move files around
fix calling of event handler registration