more or less finished, have to see about setting correct user rights on fields