moved common functions to utils and sequence to data_tools