extract code for parsing Pslan results to own file