added new lib function
make sure destination is created