core: change design of action, try to merge code for value formatting