fixes for site deployment. still doesn't seem to work completely.