Move eip to backend

Work in progress... not ready to merge but need some extra eyes on it.