match/append/extend

Also fixed File class copy