v0.5.24 - fix offset math

properly fix offset math, adjust error handling, minor fixes