clean the shared structures
add new files for server
add new files for client