add base classes, java service