remove unnecessary su and bash usage