more robust version of ensuring current statement