added schedule implementation, changed server and client