Everything now works except PUT/update which causes really strange errors, i've notified the teacher about this