add files
fix arguments and call resource
fix json support