move common functions to git