removed debugging output
added support for Android's application class