added handling of import directive