adds function to fab file