avoid relative path translation when server
insert begin and end blocks
thread end only when return