Read and handle clients input WIP