service organized as class lib