fix assumptions
fix json detection
0.2.1