made package dir
split apart ptr and scalar types