fix default action edge cases and make it work with format
replace ts by curse in tests
remove comments