some quick fixes, deprecations replacements, and parameters added to get_access_token function
some quick fixes, deprecations replacements, and parameters added to get_access_token function