added options and handle namespace, can now pass in an offset to the in view calculation