add debug code to traivs

THIS IS TEST CODE FOR #70, DO NOT MERGE