added parameters for slot and partition.

closes #2