added beacon api - close #12