seprate onResourceLoad
disable log by default
add logging to server
support require 3 parameters