fixed prepare to handle roles and indexes correctly, removed unecessary
to_s method