check access
check access
refactoring
handle api calls