envs modifications and flowdb additions