Feature/fix csv upload with aliases

please read comment in b0b6d4f