optimize imports
wip
set query at resource request
fix phpcs
name binding for app name
remove unused