removed 'export' option from bundle, not its concern
removed 'export' option from bundle, not its concern
removed some more code for 'export' option from bundle
added an array index check to role based access control methods