add fns to thread-all first/last