implemented status API call - needs more refactoring (#4)