add functions check, use json to check dependency