add toArray function to configuration