add better helper function for dealing with adj files in preprocessing for scripting