initial test works! Need to fix buffer lengths for reading data