fixed fileurl and templates