better handling of raw files
fix callback when servlet is not at root