added config file parsing cruft