added some delays to help with errors