added option to ignore extends attribute