lots of changes. created a modes folder for mode specific configurations