change ownership at the end of the script