first revision of goto controller