updated to work with diff path