added resources serialization in search