added support for redirect / files sending