added safeguard for testing