working on sim_api and sim_tcp
working on sim_api and sim_tcp