made pcat and pless scripts instead of functions