put chain routines in directory