fixing errors, outline parsing logic.