fixes #22, changed behaviour of rename