formalize the asset loading for relative paths