wrap attach in eval