Firt working implementation of os-client + various updates