setup API for tped writing functions