add function refs to check for success