adding data dir and modifying controllers to read from it