add activate script (rewrite of zap, more or less)