adding lab folder detection