nicer if execution flow
fixed sytax error
semgit is now prefix resiliant