moved some pieces around
added inverse of open_ee