added environment, dependencies and other setup functions to core functions