fix base path and asset references