trying to make it work with manual files