using scratch as startup buffer