size and send bug fixed with relative paths