fix: Improve actions function in derogation
fix: Get afield and avalue before logging
add: cstatemap object