added custom configuration file option
make sure custom config file is malloc'd and freed accordingly