removed unused functions from omero and added first check on upload safety