more improvements to the piki detector