moved home to auth filter and wrapped all assets in asset function