add getOffset method that means there is no longer a dependency on a library for this
remove appendElement function from library adapters