make building GUI optional