intial testcode
change available call to available_pipe to print out which pipe sent data