feature: make config.php return json
move to check.php to keep with the naming in app