fixing errors, upload works