fixes #11 remove static dependency, using reflection instead