added bash and forking stuff