updated magic and publish to work on multiple files.