gui and reference corrections