add some trick and add json database for futur consideration