more plugin code added. Hooks to remote paint.