needed to trim ids otherwise blocks are lost