reverted back to previous logic for setting coord_type and wrap