attempt to work around concurrency issue with active record