add cookie functions to mov16