warm cache url fix and typecast of global opts