generic blog and code cleanup