refactor(workspace): out of closures

new methods in prototype instead closures

time: 0h:0