added option for creating shards