changes to handle blog id in case of multisite