added lib_csrfmagic