bump to 0.2.2
raise error if input file is invalid