added ifdefs to remove gui code