restructuring .shell