reorganized jman into a single script