improve assert functions, rename show_git function