add new bug with json
added namespace api
minor fixes