experimental macro support

Use pattern matching here and log an error when the marker creation fails.