changed path to folder, added if to check for branch