Global working
refactored backend class