working version of the operator framework