added read config file ability, not supposed to be in that branch