Bug fixes for direct post, now working all the way through with test config