better logging, docs, and error checkout for autoload_static