added temporary debugging code for FileDirect test sample code