fifth commit, pretty much done

select type field defaults to choosing a type for some reason, will try
to fix