printing improvements, block func improvements