move scatter logic converter into own file