init endpoints fix, whitespace cleanup