added flags to shape objects