argument added for callbacks in libeai