i got rid of the registration erro by adding in

wc.IconSm = ...

but i still have a creation error..