moved to global scope for a while