added copy command before chmod and chown...