fixes to make deploy work from clone