fixed mock-proxy generation