try a sed command instead of appending to the config