more work on optimal control stuff