improved filename->killring function, pt 2