ported over old scripts