connection bug fix & checking api level before running new api-method