added units api endpoint