added check for bin folders