Server-side part of kubos