added the posibility to set custom headers for files