Revert "Revert "formatting fixes""

This reverts commit cb7245b009d89af9e282bb4b6cc3eb8ab2b85fb2.
readd smalldevice api call