added logging and updated startSize in idle