need to fix safepos now