added config reading and stuff