core: redesign formating and printing (WIP)