cleaned up config and fixed posting exeption