resolved issue with proxy in layer.py