use more reflective objects
added support for byte arrays