fix using 'self' outside class (don't code when tired dude)