added 'patch' support