implement getPose for testing purposes, fix some errors