removed the spack and sopen and fixed open type