defined config file format, added more util functions