better handling of extends identifier