got basic pattern compilation going