prepare for use with custom domain