working and jsonify obj
more clean up