lic flow working for mappings, needs cleaned up