create scope proxy programmatically