added blog connection code