support legacy options after callback function