removed most of the reflection warnings... code should be faster now