implement the scaffold templates