public function register( $arr ) {
		// set error handler for catching file location errors
		set_error_handler( array( $this, 'silent_warning' ), E_WARNING );
		// determine how the structure works.
		foreach ( (array) $arr as $key => $value ) {
			$this->locations = array_merge_recursive( $this->locations, $this->get_files_from_folders( trailingslashit( $value ) ) );
		}

		// restore original handler
		restore_error_handler();
	}