merge tps.sh and server.sh