moved the endif statement of the ini stuff