added marshalling to windows phone plugin