dist server compiles
client api fix
dist srv fix