use custom json to store credentials