fix logic for out is file
print all errors in responses
add get_assignments and tests for it