more intial changes for reddapi.php