adding logging near partition creation