removed hidden relations from backend, also improved sub graph builder performance