adding basic flatblocks functionality