added string representation for resources