HEREDOCs dont seem to work for a config of this size