server: java, constants, cmd->filename
sever: changed termination