backend complete for v1
changed conf['next' -> conf['current'] and handeled a corner case