first draft of the fot_library and fot_delay routines