some scripts tweaking
moving to bash and other small fixes