block start and end insertion seems to be working ok now