add `accepts` method to context