finished functions for each application;will probably create a class;still need testing and threadsafety of pipes