made category loading automatic