some bugfixes, upload works so far but the sample file is not wellformed