add imports array and changed method of importing to support 'global' imports