allow destination argument to be a function - fixes #21
1.1.0