trying to implement reading blocks
not yet finished, need to restructure command-sending functions completely