reading and writing haproxy config file