allow looping
fixed snippet commands
attempt to fix eventlistener leak