fixed bug in pattern parsing (@ allowed after 'copy foo')