sync user goal to server, delete some useless code