made non-template proxies as default
added make_safe_callback for crash protection
fixed possible crash