added tmp directory
returns json data