added more features to kernel writer: index checking etc