adding authentications and macros