replacing shell with bash and fixing port collision bits