fixed parsing of 'package NAME {'