created new api module to simplify usage
created new api module to simplify usage