allow parsing other data files from cli

Aso, fix CalBGForPH to match.