adds proxy
refactor