made it work with data and outputs folder