refactored script for loading envs from current dir
refactored script for loading messages from current dir