moving flexible dict generation