add syntax check directly to khaleesi

Change-Id: I6f095d801fb8f243aec6eb63922b772af6dadd49