added events, loader, custom events, etc