coding proxy.js logics
fixed proxy logics