implemented unit settings on the backend