added support for setting destination