added crystal parsing