added debug and fixed new post in multisite mode