* chain nested conditions * add missing license * add dependency check to remove unnecessary when expression * minor improvement to check for the exact condition rather than just the condition task