create flexible proxy