should probably not reference static_url before it's defined