add config pkg's readfile method