updated "extends" functionality due to merge

added multiple options/features, but had to update code to make it work.