refactor reloader