functions without callbacks should throw errors