added function to get partitions, fixed deps